package com.Reactor3参考文档.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.ToString;

public class Favorite {

	private Integer fid;
	private String desc;
	
	public Favorite(Integer fid, String desc) {
		super();
		this.fid = fid;
		this.desc = desc;
	}
	public Integer getFid() {
		return fid;
	}
	public void setFid(Integer fid) {
		this.fid = fid;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((desc == null) ? 0 : desc.hashCode());
		result = prime * result + ((fid == null) ? 0 : fid.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Favorite other = (Favorite) obj;
		if (desc == null) {
			if (other.desc != null)
				return false;
		} else if (!desc.equals(other.desc))
			return false;
		if (fid == null) {
			if (other.fid != null)
				return false;
		} else if (!fid.equals(other.fid))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Favorite [fid=" + fid + ", desc=" + desc + "]";
	}

}
